Skip to content

Conversation

@wrideout-arista
Copy link
Contributor

Description of PR

When running on isolated-v6 testbeds, use IPv6 addressing in the outermost L3 header of IPinIP packets, as IPv4 addresses are not configured and are unresolvable on these testbeds.

Summary:
Fixes #21160

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

This removes an issue caused by a mismatch between test expectations and the testbed configuration, namely the assumption that IPv4 addresses can be used on testbeds that are isolated-v6. This came up during imagequal testing of a different branch and will need to be addressed there as well.

How did you do it?

Evaluate whether or not the testbed is isolated-v6 and safe this in a class attribute. If this attribute is true, pass IPv6 addresses to packet-creation and verification methods so that the L3 addresses in outer headers of IPinIP packets are IPv6. IPv6-specific scapy methods are utilized where applicable.

How did you verify/test it?

Verified that the test case now uses IPv6 addressing in outer IPinIP headers, and that it no longer fails due to nexthop resolution issues.

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: fib/test_fib.py::test_ipinip_hash_negative[ipv6] fails when run on isolated-v6 testbeds

3 participants